# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=py3-prawcore
pkgver=2.3.0
pkgrel=3
pkgdesc="Low-level communication layer for PRAW 4+"
url="https://github.com/praw-dev/prawcore"
arch="noarch"
license="BSD-2-Clause"
depends="
	py3-requests
	"
makedepends="py3-setuptools"
checkdepends="
	py3-betamax
	py3-betamax_matchers
	py3-betamax_serializers
	py3-mock
	py3-pytest
	py3-testfixtures
	"
subpackages="$pkgname-pyc"
source="https://github.com/praw-dev/prawcore/archive/v$pkgver/prawcore-v$pkgver.tar.gz"
builddir="$srcdir/prawcore-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
e6330ed370d987720c257913ca521ddd9129aea857792e9a17b9864c275034b795b2a577f4c2235877b165df91f0898bd8e4372b59224d6eb36d5efaa4a2d3f6  prawcore-v2.3.0.tar.gz
"
